/*
 * @Description: 
 * @Author: seafwg
 * @Date: 2022-01-15 21:10:55
 * @LastEditTime: 2022-01-15 22:32:54
 * @LastEditors: seafwg
 */
type DescribleFunction = {
  description: string,
  (someArg: number): boolean
}

function doSomething(fn: DescribleFunction) {
  console.log(fn.description + ' returned' + fn(6))
}

function fn1(n: number) {
  console.log('n :>> ', n);
  return true
}
fn1.description = "hello"

doSomething(fn1)

doSomething(fn1)
